package cn.xinfei.xdecision.common.model.configcenter.rejectcode.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "t_reject_branch_code")
public class RejectBranchCodeModel implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long rejectCodeId;
    private String name;

    private String displayName;
    /**
     * 是否删除
     */
    @TableLogic
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdTime;
    /**
     * 最后更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedTime;
    /**
     * 备注
     */
    @TableField(exist = false)
    private String remark;


    private String attributes;

    private Integer prohibitedApplyTime;
    private Long diversionLabelId;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.INTEGER)
    private Long createUserId;

    @TableField(exist = false)
    private RejectCodeModel rejectCode;

    @TableField(exist = false)
    private RejectDiversionLabelModel rejectDiversionLabel;

}
